package com.cherrypt.api.model.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.lang.reflect.Array;

@ApiModel
@Getter
@Setter
@ToString
public class TrackerDto {
    @ApiModelProperty(value = "刷新时间", example = "3600")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer interval;

    @ApiModelProperty(value = "最小刷新时间", example = "60")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "min interval")
    private Integer minInterval;

    @ApiModelProperty(value = "做种人数", example = "1")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer complete;

    @ApiModelProperty(value = "完成人数", example = "1")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer incomplete;

    @ApiModelProperty(value = "peer数组")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Array peer;

    @ApiModelProperty(value = "失败返回信息")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "failure reason")
    private String failureReason;
}
